package com.sum.slike.simple;

import com.sum.slike.BitmapProvider;
import ohos.app.Context;

/**
 * @author: zhu_zhonglin
 * @time: 2021/4/26
 */
public class BitmapProviderFactory {

    /**
     * 获取Provider
     * @param context context
     * @return Provider
     */
    public static BitmapProvider.Provider getHDProvider(final Context context) {
        return new BitmapProvider.Builder(context)
                .setDrawableArray(new int[]{ResourceTable.Media_emoji_1, ResourceTable.Media_emoji_2, ResourceTable.Media_emoji_3, ResourceTable.Media_emoji_4,
                        ResourceTable.Media_emoji_5, ResourceTable.Media_emoji_6, ResourceTable.Media_emoji_7, ResourceTable.Media_emoji_8,
                        ResourceTable.Media_emoji_9, ResourceTable.Media_emoji_10, ResourceTable.Media_emoji_11, ResourceTable.Media_emoji_12,
                        ResourceTable.Media_emoji_13, ResourceTable.Media_emoji_14, ResourceTable.Media_emoji_15, ResourceTable.Media_emoji_16,
                        ResourceTable.Media_emoji_17, ResourceTable.Media_emoji_18, ResourceTable.Media_emoji_19, ResourceTable.Media_emoji_20})
                .setNumberDrawableArray(new int[]{ResourceTable.Media_multi_digg_num_0, ResourceTable.Media_multi_digg_num_1, ResourceTable.Media_multi_digg_num_2,
                        ResourceTable.Media_multi_digg_num_3, ResourceTable.Media_multi_digg_num_4, ResourceTable.Media_multi_digg_num_5,
                        ResourceTable.Media_multi_digg_num_6, ResourceTable.Media_multi_digg_num_7, ResourceTable.Media_multi_digg_num_8, ResourceTable.Media_multi_digg_num_9})
                .setLevelDrawableArray(new int[]{ResourceTable.Media_multi_digg_word_level_1, ResourceTable.Media_multi_digg_word_level_2, ResourceTable.Media_multi_digg_word_level_3})
                .build();
    }

    /**
     * getSmoothProvider
     * @param context context
     * @return Provider
     */
    public static BitmapProvider.Provider getSmoothProvider(Context context) {
        return new BitmapProvider.Builder(context).build();
    }

}
